﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CargoWeight.aspx.cs" Inherits="Views_CargoWeight" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>正贸仓储物流管理系统</title>
    <link href="../CSS/css.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        function ShowEdit(Lane, Line, Lcol, Lay, Hid) {

            if (document.getElementById('txtSLine').value == "" || document.getElementById('txtSLcol').value == "") {
                document.getElementById('txtSLine').value = Hid;
                document.getElementById('txtSLcol').value = Lcol;

            }
            else if (isNaN(document.getElementById("txtSLine").value) == true || isNaN(document.getElementById("txtSLcol").value) == true) {
                alert('排或列要是数字！');
                return;
            }
            else if (document.getElementById('txtSLine').value != "" && document.getElementById('txtSLcol').value !== "" && document.getElementById('txtELine').value == "" || document.getElementById('txtELcol').value == "") {
                document.getElementById('txtELine').value = Hid;
                document.getElementById('txtELcol').value = Lcol;
            }
            else if (isNaN(document.getElementById("txtELine").value) == true || isNaN(document.getElementById("txtELcol").value) == true) {
                alert('排或列要是数字！');
                return;
            }
            else {
                document.getElementById('txtELine').value = Hid;
                document.getElementById('txtELcol').value = Lcol;
            }
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td style="height: 30px">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="background-image: url(../Images/tab_03.gif); background-repeat: repeat-x;
                                width: 12px;">
                                &nbsp;
                            </td>
                            <td style="background-image: url(../Images/tab_05.gif); background-repeat: repeat-x;
                                height: 30px;">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 46%; vertical-align: middle;">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td style="width: 5%; vertical-align: middle;">
                                                        <img src="../Images/tb.gif" width="16" height="16" />
                                                    </td>
                                                    <td style="width: 95%;">
                                                        <span>你当前的位置</span>：视图管理-货位重量视图
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="54%">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td width="16" style="background-image: url(../Images/tab_07.gif); height: 30px;">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="background-image: url(../Images/tab_12.gif); width: 8px;">
                                &nbsp;
                            </td>
                            <td>
                                <asp:ScriptManager ID="ScriptManager1" runat="server">
                                </asp:ScriptManager>
                                <asp:UpdatePanel ID="UpdateP" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td>
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #b5d6e6;">
                                                        <tr>
                                                            <td style="padding: 2px;">
                                                                <table width="100%" cellspacing="0" cellpadding="0" border="1" bordercolordark="#ffffff"
                                                                    bordercolorlight="#b5d6e6">
                                                                    <tr style="height: 22px;">
                                                                        <td style="padding-left: 2px;" class="style1">
                                                                            开始坐标：<asp:TextBox ID="txtSLine" runat="server" Width="30px" Height="14px"></asp:TextBox>--
                                                                            <asp:TextBox ID="txtSLcol" runat="server" Width="30px" Height="14px"></asp:TextBox>--
                                                                            结束坐标：<asp:TextBox ID="txtELine" runat="server" Width="30px" Height="14px"></asp:TextBox>--
                                                                            <asp:TextBox ID="txtELcol" runat="server" Width="30px" Height="14px"></asp:TextBox>
                                                                        </td>
                                                                        <td valign="middle">
                                                                            <asp:ImageButton ID="ibtnSelect" runat="server" ImageUrl="~/Images/Selected.gif"
                                                                                Width="65" OnClick="ibtnSelect_Click" />
                                                                            <asp:ImageButton ID="ibtnReset" runat="server" ImageUrl="~/Images/btn/btn_Reset.gif"
                                                                                Width="65" OnClick="ibtnReset_Click" />
                                                                        </td>
                                                                        <td style="width: 10%" align="right">
                                                                            巷道选择：
                                                                        </td>
                                                                        <td style="width: 20%; padding-left: 2px;">
                                                                            <asp:DropDownList ID="ddlNo_Lane" runat="server" OnSelectedIndexChanged="ddlNo_Lane_SelectedIndexChanged"
                                                                                AutoPostBack="true">
                                                                            </asp:DropDownList>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="padding: 2px;">
                                                                <table width="100%" cellspacing="0" cellpadding="0" border="1" bordercolordark="#ffffff"
                                                                    bordercolorlight="#b5d6e6">
                                                                    <tr>
                                                                        <td style="width: 30%; padding-left: 2px; padding-right: 2px;">
                                                                            <asp:GridView ID="gvType_Weight" runat="server" AutoGenerateColumns="False" Width="100%"
                                                                                OnRowDataBound="gvType_Weight_RowDataBound" BorderColor="#b5d6e6" BorderWidth="1"
                                                                                BorderStyle="Solid">
                                                                                <Columns>
                                                                                    <asp:BoundField DataField="Pos_Weight" HeaderText="单元尺寸编号">
                                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                                    </asp:BoundField>
                                                                                    <asp:BoundField DataField="Pos_Weight_Title" HeaderText="单元尺寸名称">
                                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                                    </asp:BoundField>
                                                                                    <asp:TemplateField HeaderText="显示颜色">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label ID="labShowColor" runat="server" Text="&nbsp;" ToolTip='<%# Bind("ShowColor") %>'
                                                                                                Width="55px"></asp:Label>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                </Columns>
                                                                                <HeaderStyle HorizontalAlign="Center" CssClass="gvH" Font-Bold="true" Height="20px" />
                                                                                <RowStyle CssClass="gridpad" HorizontalAlign="Center" />
                                                                            </asp:GridView>
                                                                        </td>
                                                                        <td style="width: 20%;" valign="top">
                                                                            <table width="100%" cellspacing="0" cellpadding="0" border="1" bordercolordark="#ffffff"
                                                                                bordercolorlight="#b5d6e6">
                                                                                <tr>
                                                                                    <td align="center">
                                                                                        当前货位重量类型
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="center">
                                                                                        <asp:DropDownList ID="ddlType_Weight" runat="server" Width="150px" DataTextField="Pos_Weight_Title"
                                                                                            DataValueField="Pos_Weight">
                                                                                        </asp:DropDownList>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="center">
                                                                                        <asp:ImageButton ID="ibtnReset_Weight" runat="server" ImageUrl="../Images/005.gif"
                                                                                            OnClick="ibtnReset_Weight_Click" />
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="center">
                                                                                        <asp:ImageButton ID="ibtnDel_Weight" runat="server" ImageUrl="../Images/006.gif"
                                                                                            OnClick="ibtnDel_Weight_Click" />
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </td>
                                                                        <td style="width: 25%; color: Red;" valign="top">
                                                                            <asp:Label ID="lblKindMessage" runat="server"></asp:Label>&nbsp;
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="padding: 2px; text-align: center;">
                                                                <div style="margin-left: 0px; margin-top: 3px; width: 100%; height: 562px; overflow-x: auto;
                                                                    overflow-y: auto;">
                                                                    <asp:GridView ID="gv_Weight" Width="100%" runat="server" AutoGenerateColumns="true"
                                                                        OnRowDataBound="gv_Weight_RowDataBound" BorderColor="#b5d6e6" BorderStyle="Solid"
                                                                        BorderWidth="1px">
                                                                        <HeaderStyle HorizontalAlign="Center" CssClass="gvHeader" Font-Bold="true" Height="20px" />
                                                                        <RowStyle CssClass="gridviewRow" HorizontalAlign="Center" />
                                                                    </asp:GridView>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                            <td style="background-image: url(../Images/tab_15.gif); width: 8px;">
                                &nbsp;<input id="hidTypeOfState" type="hidden" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                </td>
            </tr>
            <tr>
                <td style="background-image: url(../Images/tab_19.gif); height: 35px;">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="width: 12px; height: 35px;">
                                <img src="../Images/tab_18.gif" width="12" height="35" />
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td width="16">
                                <img src="../Images/tab_20.gif" width="16" height="35" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
